package com.lpf.json.fastjson.StreamApi;

import java.io.FileWriter;
import java.io.IOException;

import com.alibaba.fastjson.JSONWriter;

public class TestHugeArraySerialize {

	public static void main(String[] args) throws IOException {
		JSONWriter writer = new JSONWriter(new FileWriter("hugeArray.com.lpf.json"));
		writer.startArray();
		for (int i = 0; i < 10; ++i) {
			writer.writeValue(new VO(i));
		}
		writer.endArray();
		writer.close();
	}

}
